<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

class PositionMonthSalary extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'user_month_targets';

    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function salary()
    {
        return $this->belongsTo(User::class, 'user_id');
    }

    public function positionMonthTarget()
    {
        return $this->belongsTo(PositionMonthTarget::class);
    }
}
